package com.hoow.shakoow.utils.analytics.bean

//import com.appsflyer.AFInAppEventParameterName
//import com.appsflyer.AFInAppEventType
//import com.appsflyer.AppsFlyerLib
//import com.appsflyer.AppsFlyerProperties
import com.hoow.shakoow.ProjectConfig
//import com.zhi.syc.data.util.ASNetworkUtil

class ParamAppsflyerS2S(
    /** ip */
    var ip: String = "",
    /** 类型 */
    val type: String = "SAVE",
    /** appsflyer id */
    var appsflyer_id: String = "",
    /** 客户id */
    var customer_user_id: String = "",
    /** 事件名 */
    val eventName: String = "",//AFInAppEventType.ADD_PAYMENT_INFO,
    /** 事件值 */
    var eventValue: String = "",
    /** 包名 */
    val bundleIdentifer: String = ProjectConfig.Pck,
    /** app版本号 */
    val app_version_name: String = ProjectConfig.Version_NAME.toString(),
) : ParamBase() {
//    init {
//        //组装原有的appsflyer id
//        this.appsflyer_id =
//            AppsFlyerLib.getInstance().getAppsFlyerUID(ProjectApplication.instance) ?: ""
//
//        //组装原有的客户id
//        val lastCuid = AppsFlyerProperties.getInstance().getString(AppsFlyerProperties.APP_USER_ID)
//        this.customer_user_id = lastCuid ?: "${ProjectConfig.Pck}_${this.appsflyer_id}"
//
//        //组装ip
//        this.ip = ASNetworkUtil.getIPAddress(ProjectApplication.instance) ?: ""
//
//        //组装事件
//        var gEventValu = ""
//        try {
//            val jsonObject = JSONObject()
//            jsonObject.put(AFInAppEventParameterName.SUCCESS, true)
//            jsonObject.put(AFInAppEventParameterName.CONTENT, "review_pass")
//            jsonObject.put(AFInAppEventParameterName.CONTENT_TYPE, "review_pass")
//            gEventValu = jsonObject.toString()
//        } catch (e: Exception) {
//            e.printStackTrace()
//        }
//        this.eventValue = gEventValu
//    }

}
